# Copyright (c) 2019 Presto Labs Pte. Ltd.
# Author: jhkim

from coin.exchange.base.order_gateway import OrderSide
from coin.strategy.mm.simple_sim.base import UnavailabilityChecker

from coin.strategy.hk_lm.lm_agg_logic import LmAggLogic as LmAggLogicLive


class LmAggLogic(LmAggLogicLive):
  def get_misc_info(self):
    return None

  def try_fire_and_manage(self, *, timestamp, executor, feed_converter, model, book, dry_run):
    executor.set_timestamp(timestamp)
    self.try_fire_impl(timestamp=timestamp,
                       executor=executor,
                       feed_converter=feed_converter,
                       model=model,
                       book=book,
                       dry_run=dry_run)
    self.manage_orders(executor, timestamp)
